import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictIntIntHelper } from "../Public/DictIntIntHelper";
type int = number;
//class SPlayerGuildInfo
    
    export  class SPlayerGuildInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPlayerGuildInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.playerId);
            arg1.writeInt(this.guildId);
            arg1.writeString(this.guildName);
            arg1.writeInt(this.level);
            arg1.writeInt(this.position);
            arg1.writeInt(this.playerNum);
            arg1.writeInt(this.contribution);
            arg1.writeInt(this.totalContribution);
            arg1.writeInt(this.hallLevel);
            arg1.writeInt(this.money);
            arg1.writeInt(this.resource);
            arg1.writeInt(this.bloom);
            arg1.writeInt(this.aura);
            arg1.writeInt(this.awardItemCode);
            arg1.writeBool(this.hadAward);
            DictIntIntHelper.write(arg1, this.structrueLevel);
            arg1.writeInt(this.house);
            arg1.writeDate(this.lastEnterDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.playerId = arg1.readInt();
            this.guildId = arg1.readInt();
            this.guildName = arg1.readString();
            this.level = arg1.readInt();
            this.position = arg1.readInt();
            this.playerNum = arg1.readInt();
            this.contribution = arg1.readInt();
            this.totalContribution = arg1.readInt();
            this.hallLevel = arg1.readInt();
            this.money = arg1.readInt();
            this.resource = arg1.readInt();
            this.bloom = arg1.readInt();
            this.aura = arg1.readInt();
            this.awardItemCode = arg1.readInt();
            this.hadAward = arg1.readBool();
            this.structrueLevel = DictIntIntHelper.read(arg1);
            this.house = arg1.readInt();
            this.lastEnterDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=12042;

        public /* var */playerId: int;

        public /* var */guildId: int;

        public /* var */guildName: string;

        public /* var */level: int;

        public /* var */position: int;

        public /* var */playerNum: int;

        public /* var */contribution: int;

        public /* var */totalContribution: int;

        public /* var */hallLevel: int;

        public /* var */money: int;

        public /* var */resource: int;

        public /* var */bloom: int;

        public /* var */aura: int;

        public /* var */awardItemCode: int;

        public /* var */hadAward: Boolean;

        public /* var */structrueLevel: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */house: int;

        public /* var */lastEnterDt: Date;

        public static /* var */_regist: SPlayerGuildInfo;
    }

            SPlayerGuildInfo._regist = new SPlayerGuildInfo(true);
        